/**
 * ====== 用户推广 ======
 */

const InviteeCode = 'APP-INVITEE_CODE' // 被邀请二维码

/**
 * 获取登录 TOKEN
 */
export const getInviteeCode = () => {
    return uni.getStorageSync(InviteeCode)
}

/**
 * 设置登录 TOKEN
 */
export const setInviteeCode = (inviteeCode: string) => {
    return uni.setStorageSync(InviteeCode, inviteeCode)
}

/**
 * 删除邀请码
 */
export const removeInviteeCode = () => {
    return uni.removeStorageSync(InviteeCode)
}
